import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/projectInfo/getListPage',
    method: 'post',
    data
  })
}

export function saveData(data) {
  return request({
    url: '/projectInfo/save',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: '/projectInfo/edit',
    method: 'post',
    data
  })
}

export function remove(data) {
  return request({
    url: '/projectInfo/delete',
    method: 'post',
    params: data
  })
}

export function complete(data) {
  return request({
    url: '/projectInfo/complete',
    method: 'post',
    params: data
  })
}

export function submit(data) {
  return request({
    url: '/projectInfo/submit',
    method: 'post',
    params: data
  })
}

export function getInfo(data) {
  return request({
    url: '/projectInfo/getInfo',
    method: 'get',
    params: data
  })
}

export function getInfoByOrderId(data) {
  return request({
    url: '/projectInfo/getInfoByOrderId',
    method: 'get',
    params: data
  })
}

export function getXGFInfo(data) {
  return request({
    url: '/projectInfo/getXGFInfo',
    method: 'post',
    data
  })
}

export function getSortNumByType(data) {
  return request({
    url: '/projectInfo/getSortNumByType',
    method: 'get',
    params: data
  })
}

export function getXiangMuList(data) {
  return request({
    url: '/projectInfo/getXiangMuList',
    method: 'post',
    data
  })
}

export function getYSPPage(data) {
  return request({
    url: '/projectInfo/getYSPPage',
    method: 'post',
    data
  })
}

export function backTo(data) {
  return request({
    url: '/projectInfo/backTo',
    method: 'post',
    params: data
  })
}

export function getXiangMuTypes() {
  return request({
    url: '/projectInfo/getXiangMuTypes',
    method: 'post'
  })
}

export function downloadFile(paran) {
  return request({
    url: '/projectInfo/downLoad',
    method: 'post',
    params: paran,
    responseType: 'blob'
  })
}
